﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Linker.TaskCenter.Tasks.Dto
{
    [Serializable]
    public class CreateTaskDto
    {
        [Required] public Guid ServiceId { get; set; }

        [MaxLength(128)] public string Name { get; set; }

        [Required] public object Request { get; set; }

        [MaxLength(128)] public string Remark { get; set; }

        [MaxLength(255)] public string CallbackUrl { get; set; }

        [Required] public Guid CreatorId { get; set; }

        [Required] public string Creator { get; set; }
    }
}